package jdk8的特性.使用流来收集数据.复杂分组;

/**
 * 食物
 * @author idea
 * @data 2018/9/16
 */
public class Food {

    /**
     * 食物名称
     */
    private String name;

    /**
     * 食物类型
     */
    private String type;

    /**
     * 食物的卡路里
     */
    private int caloricLevel;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getCaloricLevel() {
        return caloricLevel;
    }

    public void setCaloricLevel(int caloricLevel) {
        this.caloricLevel = caloricLevel;
    }

    @Override
    public String toString() {
        return "Food{" +
                "name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", caloricLevel=" + caloricLevel +
                '}';
    }
}
